/**
 * Created by guo.xiaomin on 2017-09-21.
 */

module.exports = function (app) {
    var commissionController = require('../controllers/commission-controller');
    //搜索
    app.post('/rest/' + RESTFullServiceVersion + '/commission/commissionSettlement/:page/:size', commissionController.commissionSettlement);
    //导入
    app.post('/rest/' + RESTFullServiceVersion + '/commission/commissionImport', commissionController.commissionImport);
    /**宝宝树四期   复核日志检索页面数据接口   pzs  20171031 start**/
    app.post('/rest/' + RESTFullServiceVersion + '/commission/reexamineLog/search/:page/:size', commissionController.getReexamineLogSearch);
    /**宝宝树四期   复核日志检索页面数据接口   pzs  20171031 end**/
    //导出
    app.get('/rest/' + RESTFullServiceVersion + '/commission/exportOrderCommission', commissionController.exportOrderCommission);

    /*  宝宝树66小区sprint4    add  luolh  20171102  start   */
    // 结算页面.导出订单
    app.get('/rest/' + RESTFullServiceVersion + '/commission/exportOrderCommission', commissionController.exportOrderCommission);
    // 大使佣金订单详情一览.数据取得
    app.post('/rest/' + RESTFullServiceVersion + '/commission/commissionOrderlList/:page/:size', commissionController.commissionOrderlList);
    // 大使佣金详细一览.导出
    app.get('/rest/' + RESTFullServiceVersion + '/commission/exportAmbassadorOrderDatas', commissionController.exportAmbassadorOrderDatas);
    /*  宝宝树66小区sprint4    add  luolh  20171102  end   */
};